package com.giser.testapp.lib.Download;

import android.webkit.DownloadListener;

import com.giser.testapp.lib.HttpThread;

/**
 * Created by Lss on 2017/11/28.
 */

public class MyDownloadListenter implements DownloadListener{
    @Override
    public void onDownloadStart(String url, String userAgent,
                                String contentDisposition, String mimetype, long contentLength) {
        /*System.out.println("url ==== >" + url);*/
        new HttpThread(url).start();
        //第二种方法 需要注释上一句
        /*Uri uri = Uri.parse(url);
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        startActivity(intent);*/
    }
}
